package com.duan.boot.service;

import com.duan.boot.entity.Task;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface TaskService {

    List<Task> getTaskList();

    Task getById(@Param("task_id") Long id);

    Task getByName(@Param("task_name") String name);

    Integer insertOaTask(@Param("task") Task task);

    List<Task> getByState(@Param("state") Integer state);

    List<Task> getByIdOrNameOrState(Object idOrName);

    Integer getNumberOfTask();

    List<Task> pagedQuery(Integer page, Integer numberOfPage);

    Integer pagedQueryPage(Integer numberOfPage);

    Void updateTaskState();
}
